package IO;

import java.io.File;

/**
 * Created by ZC_zc on 2016/11/28.
 */
public class scanTest {
    public static void main(String[] args) {
        String fileName="D:"+File.separator+"test";

        File file=new File(fileName);

        if (file.isDirectory()){
            File[] files=file.listFiles();
            for (File file1:files){
                System.out.println(file1);
            }
        }
    }
}
